<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>分享</title>
    <style>
        .body{
            width:100%;
            height: 100%;
            text-align:center
        }
        .img{
            width:400px;
            height: 400px;
            margin-top: 40%;
        }
        .btn{
            padding: 20px 20px;
            font-size: 60px;
            margin-top: 300px;
            color: #ffffff;
            background-color: #f8712f;
            border-radius: 50px;
        }
    </style>
</head>
<body>
<div class="body">
    <img src=<?php echo $app_logo; ?>  alt="logo" class="img">
<div class="btn">點擊進入</div>
</div>


</body>
</html>
<script>
    const oDiv = document.querySelector('.btn')
    oDiv.onclick = () => pub()

    function pub(){
        var loadDateTime = new Date();
        window.setTimeout(function() {
            var timeOutDateTime = new Date();
            if (timeOutDateTime - loadDateTime < 5000)  window.location = '{{$app_download}}';//ios下载地址
            else window.close();
        },1000);
        location.href = '{{$app_name}}://{{$app_name}}?id={{$gid}}';
    }
</script>
